using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration;
using System.Reflection;
namespace HermesPortal.Core
{
    public    class BaseDAO
    {
        private static string _conectionString = null; 
        protected static string ConnectionString
        {
            get {
                    if (_conectionString == null)
                    {
                        _conectionString = ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString;
                        if (_conectionString == null)
                            throw new ConfigurationException("Error: ConnectionString was not set check web config file.");  
                    }
                    return _conectionString; 
                }
        }

     
    }
}
